local yanyu_active = fk.CreateSkill {

  name = "joy_mou__yanyu_active",

  tags = {  },

}



yanyu_active:addEffect("active", {
  name = "joy_mou__yanyu_active",
  expand_pile = function(self)
    return player:getTableMark( "joy_mou__yanyu_cards")
  end,
  card_num = 1,
  target_num = 1,
  card_filter = function(self, to_select, selected, targets)
    return #selected == 0 and table.contains(player:getTableMark( "joy_mou__yanyu_cards"), to_select)
  end,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0
  end,
})

return yanyu_active